<div class="types view">
<h2><?php  __('Type');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $type['Type']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Title'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $type['Type']['title']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Code'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $type['Type']['code']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Description'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $type['Type']['description']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Parent'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $type['Type']['parent']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $type['Type']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $type['Type']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Type', true), array('action' => 'edit', $type['Type']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Type', true), array('action' => 'delete', $type['Type']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $type['Type']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Types', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Type', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Demandforms', true), array('controller' => 'demandforms', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Demandform', true), array('controller' => 'demandforms', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Demandforms');?></h3>
	<?php if (!empty($type['Demandform'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Code'); ?></th>
		<th><?php __('Form Date'); ?></th>
		<th><?php __('Execution Date'); ?></th>
		<th><?php __('Demander Id'); ?></th>
		<th><?php __('Type Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Is New User'); ?></th>
		<th><?php __('Jobfunction Id'); ?></th>
		<th><?php __('Jobfunction Title'); ?></th>
		<th><?php __('Jobprofile1 Id'); ?></th>
		<th><?php __('Jobprofile2 Id'); ?></th>
		<th><?php __('Jobprofile3 Id'); ?></th>
		<th><?php __('Jobprofiles Title'); ?></th>
		<th><?php __('Costcenters'); ?></th>
		<th><?php __('Branches'); ?></th>
		<th><?php __('Backup Id'); ?></th>
		<th><?php __('Is New Backup'); ?></th>
		<th><?php __('Manager Id'); ?></th>
		<th><?php __('Manager Mail'); ?></th>
		<th><?php __('Is New Manager'); ?></th>
		<th><?php __('Newmanager Id'); ?></th>
		<th><?php __('Newmanager Mail'); ?></th>
		<th><?php __('Is New Newmanager'); ?></th>
		<th><?php __('Profile Reference Name'); ?></th>
		<th><?php __('Profile Reference Id'); ?></th>
		<th><?php __('Company Id'); ?></th>
		<th><?php __('Is New Company'); ?></th>
		<th><?php __('Manager Visa'); ?></th>
		<th><?php __('Manager Visa Date'); ?></th>
		<th><?php __('Newmanager Visa'); ?></th>
		<th><?php __('New Manager Visa Date'); ?></th>
		<th><?php __('Closing Date'); ?></th>
		<th><?php __('Notes'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th><?php __('Tempform Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($type['Demandform'] as $demandform):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $demandform['id'];?></td>
			<td><?php echo $demandform['code'];?></td>
			<td><?php echo $demandform['form_date'];?></td>
			<td><?php echo $demandform['execution_date'];?></td>
			<td><?php echo $demandform['demander_id'];?></td>
			<td><?php echo $demandform['type_id'];?></td>
			<td><?php echo $demandform['user_id'];?></td>
			<td><?php echo $demandform['is_new_user'];?></td>
			<td><?php echo $demandform['jobfunction_id'];?></td>
			<td><?php echo $demandform['jobfunction_title'];?></td>
			<td><?php echo $demandform['jobprofile1_id'];?></td>
			<td><?php echo $demandform['jobprofile2_id'];?></td>
			<td><?php echo $demandform['jobprofile3_id'];?></td>
			<td><?php echo $demandform['jobprofiles_title'];?></td>
			<td><?php echo $demandform['costcenters'];?></td>
			<td><?php echo $demandform['branches'];?></td>
			<td><?php echo $demandform['backup_id'];?></td>
			<td><?php echo $demandform['is_new_backup'];?></td>
			<td><?php echo $demandform['manager_id'];?></td>
			<td><?php echo $demandform['manager_mail'];?></td>
			<td><?php echo $demandform['is_new_manager'];?></td>
			<td><?php echo $demandform['newmanager_id'];?></td>
			<td><?php echo $demandform['newmanager_mail'];?></td>
			<td><?php echo $demandform['is_new_newmanager'];?></td>
			<td><?php echo $demandform['profile_reference_name'];?></td>
			<td><?php echo $demandform['profile_reference_id'];?></td>
			<td><?php echo $demandform['company_id'];?></td>
			<td><?php echo $demandform['is_new_company'];?></td>
			<td><?php echo $demandform['manager_visa'];?></td>
			<td><?php echo $demandform['manager_visa_date'];?></td>
			<td><?php echo $demandform['newmanager_visa'];?></td>
			<td><?php echo $demandform['new_manager_visa_date'];?></td>
			<td><?php echo $demandform['closing_date'];?></td>
			<td><?php echo $demandform['notes'];?></td>
			<td><?php echo $demandform['created'];?></td>
			<td><?php echo $demandform['modified'];?></td>
			<td><?php echo $demandform['tempform_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'demandforms', 'action' => 'view', $demandform['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'demandforms', 'action' => 'edit', $demandform['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'demandforms', 'action' => 'delete', $demandform['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $demandform['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Demandform', true), array('controller' => 'demandforms', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
